package com.mactivity.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.StrictMode;
import android.webkit.WebView;

public class ChartsActivity extends Activity{

	WebView mWebView;
	
	public void onCreate(Bundle savedInstanceState){
		StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
		.detectDiskReads().detectDiskWrites().detectNetwork() // or	.detectAll() for all detectable problems
		.penaltyLog().build());

		
		super.onCreate(savedInstanceState);
	    setContentView(R.layout.chartwebview);

	    mWebView = (WebView) findViewById(R.id.webview);
	    mWebView.getSettings().setJavaScriptEnabled(true);
	    mWebView.loadUrl("http://omega.uta.edu/~hbs1966/charts/sport_type.html");		
	}
	
	@Override
	public void onBackPressed() {
		Intent myIntent = new Intent(ChartsActivity.this, HomeActivity.class);
		startActivity(myIntent);
		ChartsActivity.this.finish();
	}		
}
